<?php
	Yii::app()->clientscript
		// use it when you need it!
		/*
		->registerCssFile( Yii::app()->theme->baseUrl . '/css/bootstrap.css' )
		->registerCssFile( Yii::app()->theme->baseUrl . '/css/bootstrap-responsive.css' )
		->registerCoreScript( 'jquery' )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-transition.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-alert.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-modal.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-dropdown.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-scrollspy.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-tab.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-tooltip.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-popover.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-button.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-collapse.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-carousel.js', CClientScript::POS_END )
		->registerScriptFile( Yii::app()->theme->baseUrl . '/js/bootstrap-typeahead.js', CClientScript::POS_END )
		*/
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<meta name="language" content="en" />
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le styles -->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/bootstrap-responsive.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/menu.css" />
<!-- Le fav and touch icons -->
</head>

<body>
<div class="container" id="page">
	<div class="navbar navbar-inverse navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container-fluid">
				<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</a>
				<a class="brand" href="#"><?php echo Yii::app()->name ?></a>
				<div class="nav-collapse">
					<?php $this->widget('zii.widgets.CMenu',array(
						'htmlOptions' => array( 'class' => 'nav' ),
						'activeCssClass'	=> 'active',
						'items'=>array(
							array('label'=>'Home', 'url'=>array('/site/index')),
							array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
							array('label'=>'Contact', 'url'=>array('/site/contact')),
							array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
							array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
						),
					)); ?>
					
				</div><!--/.nav-collapse -->
			</div>
		</div>
	</div>
	
	<div class="cont">
            <div id="head">
                <div id="head-left-side">
                    <div id="logo">
                        <img src="<?php echo Yii::app()->params->logo ?>"/> 
                    </div>
                </div>
                <div id="head-center">
                    <div id="phones">
                            <?php 
                                foreach (Yii::app()->params->telephones as $tell=>$number){
                                    echo CHtml::tag("span", array() , " ".$tell.". ".$number);
                                }
                            ?>
                    </div>
                    
                     <div id="search"> 
                        <form>
                                <input type="search" placeholder="Искать">
                                <p class="clear"></p>
                        </form>
                        <p class="clear"></p>
                    </div>
                
                </div>
                
                <div id="head-right-side">
                    <div id="currencies">
                        <span>1 $ = 8.35 грн.</span><br> 
                        <span>1 $ = 9.00 грн. б/н</span>
                    </div>
                    <div id="soppingcard"> 
                        <img src="img/Shoppingcart-icon.png">   
                        <div id="vertical-line"></div>
                        <div id="amount"><span>0.00 грн.</span></div>
                    </div>
                </div>
                <p class="clear"></p>
               
            </div>
            <div id="itemsMenu">
                    <nav id="menu-wrap">    
                                        <ul id="menu">
                                                <li><a href="/">Home</a></li>

                                                <li>
                                                        <a href="">Categories</a>
                                                        <ul>
                                                                <li>
                                                                    <div class="ItemSet">
                                                                        <h2><a href="#">Ноутбуки</a></h2>
                                                                        <a href="#">Нетбуки</a>
                                                                        <a href="#">Начальный уровень</a>
                                                                        <a href="#">Для работы и учебы</a>                                                                        
                                                                    </div>
                                                                    <div class="ItemSet">
                                                                        <h2><a href="#">Планшеты</a></h2>
                                                                        <a href="#">3Q</a>
                                                                        <a href="#">Apple</a>
                                                                        <a href="#">Lenovo</a>  
                                                                    </div>
                                                                </li>
                                                                <li>
                                                                     <div class="ItemSet">
                                                                        <h2><a href="#">Планшеты</a></h2>
                                                                        <a href="#">3Q</a>
                                                                        <a href="#">Apple</a>
                                                                        <a href="#">Lenovo</a>  
                                                                        <a href="#">Lenovo</a> 
                                                                        <a href="#">Lenovo</a> 
                                                                        <a href="#">Lenovo</a> 
                                                                    </div>
                                                                    <div class="ItemSet">
                                                                        <h2><a href="#">Ноутбуки</a></h2>
                                                                        <a href="#">Нетбуки</a>
                                                                        <a href="#">Начальный уровень</a>
                                                                        <a href="#">Для работы и учебы</a>                                                                        
                                                                    </div>
                                                                </li>
                                                        </ul>
                                                </li>
                                                <li>
                                                        <a href="">Work</a>
                                                        <ul>

                                                                <li>
                                                                    <div class="ItemSet">
                                                                        <h2><a href="#">Планшеты</a></h2>
                                                                        <a href="#">3Q</a>
                                                                        <a href="#">Apple</a>
                                                                        <a href="#">Lenovo</a>  
                                                                        <a href="#">Lenovo</a> 
                                                                        <a href="#">Lenovo</a> 
                                                                        <a href="#">Lenovo</a> 
                                                                    </div>
                                                                        				
                                                                </li>
                                                                <li>
                                                                    <div class="ItemSet">
                                                                        <h2><a href="#">Планшеты</a></h2>
                                                                        <a href="#">3Q</a>
                                                                        <a href="#">Apple</a>
                                                                        <a href="#">Lenovo</a>  
                                                                        <a href="#">Lenovo</a> 
                                                                        <a href="#">Lenovo</a> 
                                                                        <a href="#">Lenovo</a> 
                                                                    </div>
                                                                        			
                                                                </li>
                                                                <li>
                                                                    <div class="ItemSet">
                                                                        <h2><a href="#">Планшеты</a></h2>
                                                                        <a href="#">3Q</a>
                                                                        <a href="#">Apple</a>
                                                                        <a href="#">Lenovo</a>  
                                                                        <a href="#">Lenovo</a> 
                                                                        <a href="#">Lenovo</a> 
                                                                        <a href="#">Lenovo</a> 
                                                                    </div>
                                                                      				
                                                                </li>

                                                        </ul>		
                                                </li>
                                                <li><a href="">About</a></li>
                                                <li><a href="">Contact</a></li>
                                        </ul>
                                </nav>
            </div>
	<div class="container-fluid">
	  <?php if(isset($this->breadcrumbs)):?>
			<?php $this->widget('zii.widgets.CBreadcrumbs', array(
				'links'=>$this->breadcrumbs,
				'homeLink'=>false,
				'tagName'=>'ul',
				'separator'=>'',
				'activeLinkTemplate'=>'<li><a href="{url}">{label}</a> <span class="divider">/</span></li>',
				'inactiveLinkTemplate'=>'<li><span>{label}</span></li>',
				'htmlOptions'=>array ('class'=>'breadcrumb')
			)); ?>
		<!-- breadcrumbs -->
	  <?php endif?>
                
	<?php echo $content ?>
	
	
	</div><!--/.fluid-container-->
	</div>

</div>	
	
	<div class="extra">
	  <div class="container">
		<div class="row">
			<div class="col-md-3">
				<h4>Heading 1</h4>
				<ul>
					<li><a href="#">Subheading 1.1</a></li>
					<li><a href="#">Subheading 1.2</a></li>
					<li><a href="#">Subheading 1.3</a></li>
					<li><a href="#">Subheading 1.4</a></li>
				</ul>
			</div> <!-- /span3 -->
			
			<div class="col-md-3">
				<h4>Heading 2</h4>
				<ul>
					<li><a href="#">Subheading 2.1</a></li>
					<li><a href="#">Subheading 2.2</a></li>
					<li><a href="#">Subheading 2.3</a></li>
					<li><a href="#">Subheading 2.4</a></li>
				</ul>
			</div> <!-- /span3 -->
			
			<div class="col-md-3">
				<h4>Heading 3</h4>	
				<ul>
					<li><a href="#">Subheading 3.1</a></li>
					<li><a href="#">Subheading 3.2</a></li>
					<li><a href="#">Subheading 3.3</a></li>
					<li><a href="#">Subheading 3.4</a></li>
				</ul>
			</div> <!-- /span3 -->
			
			<div class="col-md-3">
				<h4>Heading 4</h4>
				<ul>
					<li><a href="#">Subheading 4.1</a></li>
					<li><a href="#">Subheading 4.2</a></li>
					<li><a href="#">Subheading 4.3</a></li>
					<li><a href="#">Subheading 4.4</a></li>
				</ul>
				</div> <!-- /span3 -->
			</div> <!-- /row -->
		</div> <!-- /container -->
	</div>
	
	<div class="footer">
	  <div class="container">
		<div class="row">
			<div id="footer-copyright" class="col-md-6">
				About us | Contact us | Terms & Conditions
			</div> <!-- /span6 -->
			<div id="footer-terms" class="col-md-6">
				© 2012-13 Black Bootstrap. <a href="http://nachi.me.pn" target="_blank">Nachi</a>.
			</div> <!-- /.span6 -->
		 </div> <!-- /row -->
	  </div> <!-- /container -->
	</div>

	</body>
</html>
